package ch.sfug.util.string
{
	public class EmailCheck
	{
		public function EmailCheck()
		{
			
		}
		
		public static function check ( mail:String ):Boolean 
		{
			var regExpPattern : RegExp = /^[0-9a-zA-Z][-._a-zA-Z0-9]*@([0-9a-zA-Z][-._0-9a-zA-Z]*\.)+[a-zA-Z]{2,4}$/;
			if( mail.match(regExpPattern) == null ) 
			{
				return false;
			} 
			else 
			{
				return true;
			}
		}
	}
}